package com.heima.wemedia.client;

import com.heima.model.media.dtos.WmUserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-wemedia")//指定当前接口作为leadnews-wemedia服务的feign接口
public interface WemediaFeign {

    ///**
    // * 根据apUserId 查询 自媒体用户信息
    // * @param apUserId
    // * @return
    // */
    //@GetMapping("/api/v1/wmuser/findByApUserId/{id}")
    //WmUserDto findByApUserId(@PathVariable(name = "id")Integer apUserId);

    /**
     * 保存自媒体用户
     * @param
     * @return
     */
    @PostMapping("/api/v1/wmuser/save")
    Integer saveWmUser(@RequestBody WmUserDto dto);
}
